package rsschart.feed;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

public class DataSets {
	
	private List dataSets;
	private String name;
	private String valueLabel;
	
	public DataSets() {
		dataSets = new ArrayList();
	}
	
	public List getDataSets() {
		return dataSets;
	}
	public void setDataSets(List dataSets) {
		this.dataSets = dataSets;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
		
	public String getValueLabel() {
		return valueLabel;
	}

	public void setValueLabel(String valueLabel) {
		this.valueLabel = valueLabel;
	}

	/**
	 * 
	 * @param dataSet
	 */
	public void add(DataSet dataSet) {
		//-- this method isn't static so we shouldn't have to check
		//-- for the existence of the arrayList created in the constructor?
		dataSets.add(dataSet);
	}

	public Iterator iterator() {
		// TODO Auto-generated method stub
		return dataSets.iterator();
	}


	public ListIterator listIterator() {
		// TODO Auto-generated method stub
		return dataSets.listIterator();
	}

	public int size() {
		// TODO Auto-generated method stub
		return dataSets.size();
	}
	
	public DataSet getDataSet(int i) {
		return (DataSet)dataSets.get(i);
	}
	
}
